# all the imports
import sqlite3
from flask import Flask, request, session, g, redirect, url_for, abort
from flask import render_template, flash

# configuration
DATABASE = '/tmp/cogsci_berkeley.db'
DEBUG = True
SECRET_KEY = 'development key'
USERNAME = 'admin'
PASSWORD = 'default'

# create our little application :)
app = Flask(__name__)
app.config.from_object(__name__)

def connect_db():
    return sqlite3.connect(app.config['DATABASE'])


@app.route('/')
def show_home():
    return render_template('home.html')


if __name__ == '__main__':
    app.run()
